package com.scgl.suppliers.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.suppliers.mapper.SuppliersManageMapper;
import com.scgl.suppliers.domain.SuppliersManage;
import com.scgl.suppliers.service.ISuppliersManageService;

/**
 * 管理Service业务层处理
 *
 * @author mobai
 * @date 2024-10-29
 */
@Service
public class SuppliersManageServiceImpl implements ISuppliersManageService
{
    @Autowired
    private SuppliersManageMapper suppliersManageMapper;

    /**
     * 查询管理
     *
     * @param id 管理主键
     * @return 管理
     */
    @Override
    public SuppliersManage selectSuppliersManageById(Long id)
    {
        return suppliersManageMapper.selectSuppliersManageById(id);
    }

    /**
     * 查询管理列表
     *
     * @param suppliersManage 管理
     * @return 管理
     */
    @Override
    public List<SuppliersManage> selectSuppliersManageList(SuppliersManage suppliersManage)
    {
        return suppliersManageMapper.selectSuppliersManageList(suppliersManage);
    }

    /**
     * 新增管理
     *
     * @param suppliersManage 管理
     * @return 结果
     */
    @Override
    public int insertSuppliersManage(SuppliersManage suppliersManage)
    {
        return suppliersManageMapper.insertSuppliersManage(suppliersManage);
    }

    /**
     * 修改管理
     *
     * @param suppliersManage 管理
     * @return 结果
     */
    @Override
    public int updateSuppliersManage(SuppliersManage suppliersManage)
    {
        return suppliersManageMapper.updateSuppliersManage(suppliersManage);
    }

    /**
     * 批量删除管理
     *
     * @param ids 需要删除的管理主键
     * @return 结果
     */
    @Override
    public int deleteSuppliersManageByIds(Long[] ids)
    {
        return suppliersManageMapper.deleteSuppliersManageByIds(ids);
    }

    /**
     * 删除管理信息
     *
     * @param id 管理主键
     * @return 结果
     */
    @Override
    public int deleteSuppliersManageById(Long id)
    {
        return suppliersManageMapper.deleteSuppliersManageById(id);
    }
}
